import request from '@/utils/request'
//课程分类
export default{
    //1.课程列表
    addCourseInfo(courseInfo){
        return request({
            url:`/eduservice/course/addCourseInfo`,
            method:'post',
            data:courseInfo
        })
    },
    //2.查看所有讲师
    getListTeacher(){
        return request({
            url:`/eduservice/teacher/findAll`,
            method:'get',
        })
    },
        //按照id查询所有课程
        getCourseInfoId(courseId){
            return request({
                url:`/eduservice/course/getCourseInfo/${courseId}`,
                method:'get'
            })
        },
        //更新课程信息
        updateCourseInfo(courseInfoDTO){
            return request({
                url:`/eduservice/course/updateCourseInfo`,
                method:'post',
                data:courseInfoDTO
            })
        },


        //根据课程id联表查询课程信息
        getPublishCourseInfo(courseId){
            return request({
                url:`/eduservice/course/getPublishCourseInfo/${courseId}`,
                method:'get',
            })
        },

        //课程列表
        pageCourseCondition(current,limit,CourseListQueryDTO){
            return request({
                url:`/eduservice/course/pageCourseCondition/${current}/${limit}`,
                method:'post',
                data:CourseListQueryDTO
            })
        },
        //删除课程
        deleteCoure(courseId){
            return request({
                url:`/eduservice/course/deleteCourse/${courseId}`,
                method:'delete',
            })
        }










}